package org.springframework.security.oauth2.provider;

import java.util.Map;

@Deprecated
public interface OAuth2RequestFactory {

	AuthorizationRequest createAuthorizationRequest(Map<String, String> authorizationParameters);

	OAuth2Request createOAuth2Request(AuthorizationRequest request);

	OAuth2Request createOAuth2Request(ClientDetails client, TokenRequest tokenRequest);

	TokenRequest createTokenRequest(Map<String, String> requestParameters, ClientDetails authenticatedClient);

	TokenRequest createTokenRequest(AuthorizationRequest authorizationRequest, String grantType);
}